package com.example.demo1.generator.codedesign.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class Column implements Serializable {

	private static final long serialVersionUID = 5973280113187778607L;

	/** 字段名称 */
	private String name;

	/** 字段注释 */
	private String comment;

	/** 长度 */
	private int lenght;

	/** true=主键 */
	private boolean primaryKey;

	/** true=只读属性 */
	private boolean readOnly;

	/** true=允许使用查询 */
	private boolean searchable;

	/** true=允许更新 */
	private boolean writable;

	/** true=允许空值 */
	private boolean nullable;
	
	/** true=页面生成*/
	private boolean show;

	/** SQL Type */
	private int sqlType;

	/** 实体类属性名称 */
	private String propertyName;

	/** 实体类属性名称产字母大写 */
	private String propertyNameUpper;

	private PropertyType propertyType;

	private FormType formType;
	
	/** 属性常量名称 */
	private String constantName;
}
